package com.jn.erp.web.api.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jn.erp.web.api.student.entity.StudentCourse;
import com.jn.erp.web.api.student.entity.dto.TStudentCourseDto;
import com.jn.erp.web.api.student.entity.vo.TStudentCourseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
@Mapper
public interface StudentCourseMapper extends BaseMapper<StudentCourse> {
    List<TStudentCourseDto> studentCourseList(TStudentCourseVo tStudentCourseVo);

    TStudentCourseDto studentCourseDetail(TStudentCourseVo tStudentCourseVo);

    List<TStudentCourseDto> courseList(TStudentCourseVo tStudentCourseVo);

    List<TStudentCourseDto> courseOrderList(TStudentCourseVo tStudentCourseVo);

    BigDecimal sumAmount(TStudentCourseVo tStudentCourseVos);

    List<TStudentCourseDto> listSecond(TStudentCourseVo tStudentCourseVo);

    List<StudentCourse>  listThird(StudentCourse studentCourse);

    StudentCourse selectCounts(@Param("id") Long id);

    String getMaxOrderNo(@Param("date") String date,@Param("type")Integer type);


    List<StudentCourse> selectOrder(Long id);

    Integer selAmountTotal(long studentId);

    Integer selLessonTotal(long studentId);
}